package java_test;

public class StringRegionMatches {
    public static void main(String[] args) {
        String first_str = "Welcome to Microsoft";
        String second_str = "I work with microsoft";
        boolean ismatch1 = first_str.regionMatches(11, second_str, 12, 9);
        boolean isMatch2 = first_str.regionMatches(true, 11, second_str, 12, 9);
        System.out.println("区分大小写返回值：" + ismatch1);
        System.out.println("不区分大小写返回值：" + isMatch2);
    }
}
